package shark.flow.vo;

import lombok.Data;
import org.flowable.engine.repository.ProcessDefinition;

import java.io.Serializable;
@Data
public class ProcessDefinitionVo implements Serializable {

    public ProcessDefinitionVo () {}

    public ProcessDefinitionVo(ProcessDefinition processDefinition) {
        this.id = processDefinition.getId();
        this.category = processDefinition.getCategory();
        this.deploymentId = processDefinition.getDeploymentId();
        this.diagramResourceName = processDefinition.getDiagramResourceName();
        this.modelKey = processDefinition.getKey();
        this.name = processDefinition.getName();
        this.resourceName = processDefinition.getResourceName();
        this.suspensionState = processDefinition.isSuspended();
        this.tenantId = processDefinition.getTenantId();
        this.version = processDefinition.getVersion();
    }

    protected String id;

    protected String modelKey;

    protected String name;

    protected int version;

    protected String category;

    protected String deploymentId;

    protected String resourceName;

    protected String diagramResourceName;

    protected boolean suspensionState;

    protected String tenantId;
}